package com.example.demo.mapper;

import com.example.demo.pojo.RegisterRequest;
import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Mapper
@Resource
public interface UserMapper {
    User getUserById(String id);
    List<User> getAllUsers(RegisterRequest request);
    int updateUser(User user);
    User selectUser(Map<String, Object> map);
    int insert(User user);

    int deleteById(@Param("id") String id);
}
